how to create a pair rdd in spark